package com.ncloud.workflow.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.workflow.service.ProcessInstanceService;

@RestController
public class TestController {
	
	@Autowired
	private ProcessInstanceService piService;

	@RequestMapping(value="createProcessInstance")
	public Object createProcessInstance(String param1){
		
		JSONObject json = new JSONObject();
		json.put("key", "testDubbo");
		return piService.startProcessInstance(json );
	}
	
}
